package org.lemon.springmysqltest.service;

import org.lemon.springmysqltest.entity.Order;

import java.util.List;
import java.util.Optional;

/**
 * @author : Lemon
 * @date : 2025-05-21 22:16
 **/
public interface OrderService {

    Order createOrder(Order order);

    Optional<Order> getOrderById(Long id);

    List<Order> getAllOrders();

    Order updateOrder(Long id, Order order);

    void deleteOrder(Long id);

    Order adjustOrderA() throws InterruptedException;

    Order adjustOrderB();
}
